Optimal. Leaf size=72 \[ \frac {b c F^{c (a+b x)} \cos (d+e x) \log (F)}{e^2+b^2 c^2 \log ^2(F)}+\frac {e F^{c (a+b x)} \sin (d+e x)}{e^2+b^2 c^2 \log ^2(F)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {4518}
\begin {gather*} \frac {e \sin (d+e x) F^{c (a+b x)}}{b^2 c^2 \log ^2(F)+e^2}+\frac {b c \log (F) \cos (d+e x) F^{c (a+b x)}}{b^2 c^2 \log ^2(F)+e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4518
Rubi steps
\begin {align*} \int F^{c (a+b x)} \cos (d+e x) \, dx &=\frac {b c F^{c (a+b x)} \cos (d+e x) \log (F)}{e^2+b^2 c^2 \log ^2(F)}+\frac {e F^{c (a+b x)} \sin (d+e x)}{e^2+b^2 c^2 \log ^2(F)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 47, normalized size = 0.65 \begin {gather*} \frac {F^{c (a+b x)} (b c \cos (d+e x) \log (F)+e \sin (d+e x))}{e^2+b^2 c^2 \log ^2(F)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 73, normalized size = 1.01
method | result | size |
risch | \(\frac {b c \,F^{c \left (b x +a \right )} \cos \left (e x +d \right ) \ln \left (F \right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}+\frac {e \,F^{c \left (b x +a \right )} \sin \left (e x +d \right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}\) | \(73\) |
norman | \(\frac {\frac {b c \ln \left (F \right ) {\mathrm e}^{c \left (b x +a \right ) \ln \left (F \right )}}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}+\frac {2 e \,{\mathrm e}^{c \left (b x +a \right ) \ln \left (F \right )} \tan \left (\frac {d}{2}+\frac {e x}{2}\right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}-\frac {b c \ln \left (F \right ) {\mathrm e}^{c \left (b x +a \right ) \ln \left (F \right )} \left (\tan ^{2}\left (\frac {d}{2}+\frac {e x}{2}\right )\right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}}{1+\tan ^{2}\left (\frac {d}{2}+\frac {e x}{2}\right )}\) | \(133\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 195 vs.
\(2 (73) = 146\).
time = 0.28, size = 195, normalized size = 2.71 \begin {gather*} \frac {{\left (F^{a c} b c \cos \left (d\right ) \log \left (F\right ) - F^{a c} e \sin \left (d\right )\right )} F^{b c x} \cos \left (x e + 2 \, d\right ) + {\left (F^{a c} b c \cos \left (d\right ) \log \left (F\right ) + F^{a c} e \sin \left (d\right )\right )} F^{b c x} \cos \left (x e\right ) + {\left (F^{a c} b c \log \left (F\right ) \sin \left (d\right ) + F^{a c} \cos \left (d\right ) e\right )} F^{b c x} \sin \left (x e + 2 \, d\right ) - {\left (F^{a c} b c \log \left (F\right ) \sin \left (d\right ) - F^{a c} \cos \left (d\right ) e\right )} F^{b c x} \sin \left (x e\right )}{2 \, {\left ({\left (b^{2} c^{2} \log \left (F\right )^{2} + e^{2}\right )} \cos \left (d\right )^{2} + {\left (b^{2} c^{2} \log \left (F\right )^{2} + e^{2}\right )} \sin \left (d\right )^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.79, size = 50, normalized size = 0.69 \begin {gather*} \frac {{\left (b c \cos \left (x e + d\right ) \log \left (F\right ) + e \sin \left (x e + d\right )\right )} F^{b c x + a c}}{b^{2} c^{2} \log \left (F\right )^{2} + e^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 2.52, size = 437, normalized size = 6.07 \begin {gather*} \begin {cases} - \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} i x \sin {\left (d + e x \right )}}{2} + \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} x \cos {\left (d + e x \right )}}{2} + \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} \sin {\left (d + e x \right )}}{2 e} & \text {for}\: F = -1 \wedge b = \frac {e}{\pi c} \\x \cos {\left (d \right )} & \text {for}\: F = 1 \wedge e = 0 \\\frac {b c \left (e^{- \frac {i e}{b c}}\right )^{a c} \left (e^{- \frac {i e}{b c}}\right )^{b c x} \log {\left (e^{- \frac {i e}{b c}} \right )} \cos {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{- \frac {i e}{b c}} \right )}^{2} + e^{2}} + \frac {e \left (e^{- \frac {i e}{b c}}\right )^{a c} \left (e^{- \frac {i e}{b c}}\right )^{b c x} \sin {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{- \frac {i e}{b c}} \right )}^{2} + e^{2}} & \text {for}\: F = e^{- \frac {i e}{b c}} \\\frac {b c \left (e^{\frac {i e}{b c}}\right )^{a c} \left (e^{\frac {i e}{b c}}\right )^{b c x} \log {\left (e^{\frac {i e}{b c}} \right )} \cos {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{\frac {i e}{b c}} \right )}^{2} + e^{2}} + \frac {e \left (e^{\frac {i e}{b c}}\right )^{a c} \left (e^{\frac {i e}{b c}}\right )^{b c x} \sin {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{\frac {i e}{b c}} \right )}^{2} + e^{2}} & \text {for}\: F = e^{\frac {i e}{b c}} \\\frac {F^{a c} F^{b c x} b c \log {\left (F \right )} \cos {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (F \right )}^{2} + e^{2}} + \frac {F^{a c} F^{b c x} e \sin {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (F \right )}^{2} + e^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.42, size = 631, normalized size = 8.76 \begin {gather*} {\left (\frac {2 \, b c \cos \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c + e x + d\right ) \log \left ({\left | F \right |}\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c + 2 \, e\right )}^{2}} + \frac {{\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c + 2 \, e\right )} \sin \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c + e x + d\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c + 2 \, e\right )}^{2}}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} + {\left (\frac {2 \, b c \cos \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c - e x - d\right ) \log \left ({\left | F \right |}\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c - 2 \, e\right )}^{2}} + \frac {{\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c - 2 \, e\right )} \sin \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c - e x - d\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c - 2 \, e\right )}^{2}}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} + i \, {\left (\frac {i \, e^{\left (\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi b c x + \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi a c + i \, e x + i \, d\right )}}{2 i \, \pi b c \mathrm {sgn}\left (F\right ) - 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) + 4 i \, e} - \frac {i \, e^{\left (-\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi b c x - \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi a c - i \, e x - i \, d\right )}}{-2 i \, \pi b c \mathrm {sgn}\left (F\right ) + 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) - 4 i \, e}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} + i \, {\left (\frac {i \, e^{\left (\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi b c x + \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi a c - i \, e x - i \, d\right )}}{2 i \, \pi b c \mathrm {sgn}\left (F\right ) - 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) - 4 i \, e} - \frac {i \, e^{\left (-\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi b c x - \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi a c + i \, e x + i \, d\right )}}{-2 i \, \pi b c \mathrm {sgn}\left (F\right ) + 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) + 4 i \, e}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.36, size = 48, normalized size = 0.67 \begin {gather*} \frac {F^{a\,c+b\,c\,x}\,\left (e\,\sin \left (d+e\,x\right )+b\,c\,\cos \left (d+e\,x\right )\,\ln \left (F\right )\right )}{b^2\,c^2\,{\ln \left (F\right )}^2+e^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________